﻿@model ICollection<SimpleScrum.Models.ExternalLogin>

@if (Model.Count > 0)
{
    <h4>Registered OAuth logins</h4>
    foreach (SimpleScrum.Models.ExternalLogin externalLogin in Model)
    {
            <div class="span6">
                <h4>@externalLogin.ProviderDisplayName</h4>
            </div>
        <div class="span5">
            @if (ViewBag.ShowRemoveButton)
            {
                using (Html.BeginForm("Disassociate", "Accounts"))
                {
                    @Html.AntiForgeryToken()
                    @Html.Hidden("provider", externalLogin.Provider)
                    @Html.Hidden("providerUserId", externalLogin.ProviderUserId)
                    <br/>
                    <input class="btn btn-mini btn-danger" type="submit" value="Remove" title="Remove this @externalLogin.ProviderDisplayName credential from your account" />
                            
                }
            }
            else
            {
                @: &nbsp;
            }
        </div>
    }
}
